<div id="content" ng-app="SJ-APP">
    <div class="outer" ng-controller="prize_contest_controller">
        <div class="inner bg-light lter">
            <div class="row">
                <div class="col-lg-12">
                    <div class="box">
                        <header>
                            <div class="icons">
                                <i class="fa icon-file"></i>
                            </div>
                            <h5><span>@{result.title}@</span>—奖项设置</h5>
                        </header>
                        <div class="form-horizontal" style="margin-left: 10px;">
                            <!-- 表头 -->
                            <div class="form-group" style="margin-bottom: 0px;margin-top: 10px;">
                                <div class="col-lg-3">
                                    <span>奖项名称</span>
                                </div>
                                <div class="col-lg-3">
                                    <span>奖项描述</span>
                                </div>
                                <div class="col-lg-2">
                                    <span>数量</span>
                                </div>
                                <div class="col-lg-2">
                                    <span>分类</span>
                                </div>

                            </div>
                            <div class="timeline-list">
                                <div ng-repeat="item in result.prizes">
                                    <div class="form-group timeline-group">
                                        <div class="col-lg-3">
                                            <input name="role-name-search" type="text"
                                                   class="validate[required] form-control"
                                                   style="margin-top: 10px;" placeholder="奖项名称" ng-model="item.name">
                                        </div>
                                        <div class="col-lg-3">
                                            <input name="role-name-search" type="text"
                                                   class="validate[required] form-control"
                                                   style="margin-top: 10px;" placeholder="奖项描述" ng-model="item.title">
                                        </div>
                                        <div class="col-lg-2">
                                            <input name="role-name-search" type="text"
                                                   class="validate[required] form-control" placeholder="个数"
                                                   style="margin-top: 10px;" ng-model="item.count">
                                        </div>
                                        <div class="col-lg-2">
                                            <select class="form-control ng-pristine ng-untouched ng-valid"
                                                    style="margin-top: 10px;" ng-model="item.contestCategoryId" ng-options="x.id as x.name for x in result.contestCategorys">
                                            </select>
                                        </div>
                                        <div class="col-lg-1" style="margin-top: 10px;"
                                             ng-class="{'first_line':$index==0}">
                                            <button type="button" class="btn btn-default"
                                                    ng-click="remove_prize($index)">-
                                            </button>
                                        </div>

                                    </div>

                                </div>
                                <div class="form-group txt-left cate-group">
                                    <div class="col-lg-1">
                                        <button type="button" class="btn btn-default"
                                                ng-click="add_prize($index)">+
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="center-block" style="width:350px;padding-top: 50px;">
                                <button id="btn_action" ng-click="btn_submit()" class="btn btn-primary">完成</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>


<link rel="stylesheet" href="http://static.contest.500px.me/lib/bootstrap-tagsinput-master/src/bootstrap-tagsinput.css">
<link rel="stylesheet"
      href="http://static.contest.500px.me/lib/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.css">
<script type="text/javascript" src="http://static.contest.500px.me/js/angular.min.js"></script>
<script type="text/javascript" src="http://static.contest.500px.me/js/app.js"></script>


<script type="text/javascript"
        src="http://static.contest.500px.me/lib/bootstrap-tagsinput-master/src/bootstrap-tagsinput.js"></script>
<script type="text/javascript"
        src="http://static.contest.500px.me/lib/bootstrap-tagsinput-master/src/bootstrap-tagsinput-angular.js"></script>
<link rel="stylesheet"
      href="http://static.contest.500px.me/contest_public/assets/lib/dataTables/css/dataTables.bootstrap.css"/>
<script src="http://static.contest.500px.me/contest_public/assets/lib/dataTables/js/jquery.dataTables.js"
        type="text/javascript"></script>
<script src="http://static.contest.500px.me/contest_public/assets/lib/dataTables/js/dataTables.bootstrap.js"
        type="text/javascript"></script>


<script type="text/javascript"
        src="http://static.contest.500px.me/contest_public/assets/css/bootstrap/js/bootstrap-multiselect.js"></script>

<script type="text/javascript"
        src="http://shijue.me/lib/bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript"
        src="http://shijue.me/lib/bootstrap-datetimepicker-master/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>

<link rel="stylesheet"
      href="http://static.contest.500px.me/lib/jQuery-Validation-Engine-master/css/validationEngine.jquery.css"
      type="text/css"/>
<script src="http://static.contest.500px.me/lib/jQuery-Validation-Engine-master/js/languages/jquery.validationEngine-zh_CN.js"
        type="text/javascript" charset="utf-8"></script>
<script src="http://static.contest.500px.me/lib/jQuery-Validation-Engine-master/js/jquery.validationEngine.js"
        type="text/javascript"
        charset="utf-8"></script>


<link rel="stylesheet"
      href="http://static.contest.500px.me/contest_public/assets/css/bootstrap/css/bootstrap-multiselect.css"/>


<link rel="stylesheet" href="/css/contest/main.css"/>


<script type="text/javascript" src="/js/contest/prize.js"></script>


</div><!-- /.row -->
</div>
</div><!-- /.outer -->
</div><!-- /#content -->